package com.yct.springcloud.controller;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ConfigClientController {

    @Value("${cloud.config.info}")
    private String configInfo;
    @Value("${cloud.config.datasource.url}")
    private String dataSourceUrl;
    @Value("${spring.datasource.url}")
    private String springDataSourceUrl;
    @Value("${spring.datasource.username}")
    private String springDataSourceUsername;

    @GetMapping("/configInfo")
    public String getConfigInfo(){
        return   "【" + configInfo  + "】【" + dataSourceUrl + "】" +  "【" + springDataSourceUrl  + "】【" + springDataSourceUsername + "】" ;
    }
}